home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
os20
/
wb
/
wbrandompic.lha
/
WBRandomPic.readme
< prev
Wrap
Text File
|
1992-09-02
|
2KB
|
66 lines
WBRandomPic by Chris Wright
Function
A nifty little program for 2.1+, 3.x amigas that picks an iff picture at
random during bootup to use as the workbench background, from a selection of
2 - 99 iff picture files.
How to use it
Create a directory to contain all the iff pictures that the program will
choose between. Fill the directory with some iff's of your choice, and rename
them as integers in the range 1 to n, where n = number of iff's.
Example/
Lets say you have 3 iffs: arnie.iff , f16.iff , mansell.iff in a directory
'dh1:piccys'.
You would type: 'rename arnie.iff 1'
'rename f16.iff 2'
'rename mansell.iff 3'
Then, copy one of the iff's (doesn't matter which) to an intermediate file,
that will be loaded by prefs as your WB background during bootup.
(ie/ 'copy 2 wbpic.iff').
Next, load the WBPattern tool, and change the type to 'picture', and select
the intermediate file (in this case wbpic.iff).Click on save, and exit.
All that remains is to put the WBRandomPic command in your startup-sequence,
but make sure it appears BEFORE C:Iprefs is run, otherwise prefs will attempt
to access your background iff before it is ready to be used.
In most cases, this means that unless you change the ordering of your
startup-sequence from the deafult, you won't be able to put WBRandomPic in
User-Startup, because User-Startup is executed AFTER C:Iprefs.
Example/
In this case: 'WBRandomPic 3 dh1:piccys wbpic.iff' in your startup-sequence
would suffice.
How it works
Simple really, the program picks a random number between 1 and n, and copies
the iff corresponding to that number to the file used by preferences to set
the WB background.
Note: The program uses the system command 'copy', so if this has been changed
to something different under your workbench environment, then you will need
the appropriate 'alias' before WBRandomPic is executed in your startup-
sequence.
End Bit
If you find this program useful, then please send £10 to......(I'm joking :>)
No, seriously, why not make my day and email me (
csc372@uk.ac.lancs.cent1
)
if you use this program / have any suggestions / find any bugs / want the
source code (can't imagine why!!!) etc.